<?php
$slides = new WP_Query(array(
    'post_type' => 'slide',
    'posts_per_pate' => 5,
    'order' => 'ASC',
    'orderby' => 'menu_order'
));
if($slides->have_posts()) : ?>
<div class="top-slider">
    <?php 
    while($slides->have_posts()) :
        $slides->the_post(); 
        $slide_item = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full');?>
        <div class="item">
            <img src="<?php echo dynamic_url($slide_item[0]); ?>" alt="<?php the_title(); ?>"/>
        </div>
    <?php endwhile; ?>
</div>
<?php endif; 
wp_reset_postdata(); ?>